__init__.py 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. """Jinja is a template engine written in pure Python. It provides a
  2. non-XML syntax that supports inline expressions and an optional
  3. sandboxed environment.
  4. """
  5. from .bccache import BytecodeCache as BytecodeCache
  6. from .bccache import FileSystemBytecodeCache as FileSystemBytecodeCache
  7. from .bccache import MemcachedBytecodeCache as MemcachedBytecodeCache
  8. from .environment import Environment as Environment
  9. from .environment import Template as Template
  10. from .exceptions import TemplateAssertionError as TemplateAssertionError
  11. from .exceptions import TemplateError as TemplateError
  12. from .exceptions import TemplateNotFound as TemplateNotFound
  13. from .exceptions import TemplateRuntimeError as TemplateRuntimeError
  14. from .exceptions import TemplatesNotFound as TemplatesNotFound
  15. from .exceptions import TemplateSyntaxError as TemplateSyntaxError
  16. from .exceptions import UndefinedError as UndefinedError
  17. from .loaders import BaseLoader as BaseLoader
  18. from .loaders import ChoiceLoader as ChoiceLoader
  19. from .loaders import DictLoader as DictLoader
  20. from .loaders import FileSystemLoader as FileSystemLoader
  21. from .loaders import FunctionLoader as FunctionLoader
  22. from .loaders import ModuleLoader as ModuleLoader
  23. from .loaders import PackageLoader as PackageLoader
  24. from .loaders import PrefixLoader as PrefixLoader
  25. from .runtime import ChainableUndefined as ChainableUndefined
  26. from .runtime import DebugUndefined as DebugUndefined
  27. from .runtime import make_logging_undefined as make_logging_undefined
  28. from .runtime import StrictUndefined as StrictUndefined
  29. from .runtime import Undefined as Undefined
  30. from .utils import clear_caches as clear_caches
  31. from .utils import is_undefined as is_undefined
  32. from .utils import pass_context as pass_context
  33. from .utils import pass_environment as pass_environment
  34. from .utils import pass_eval_context as pass_eval_context
  35. from .utils import select_autoescape as select_autoescape
  36. __version__ = "3.1.2"